﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="report.aspx.cs" Inherits="AnyOffice.general.attend.personal.report" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>上下班记录查询</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<LINK href="/module/date_selector/popcalendar.css" type="text/css" rel="stylesheet">
			<script src="/module/date_selector/popcalendar.js"></script>
			<script src="/aspnet_client/core/function.js"></script>
			<script language="JavaScript">
function CheckForm()
{
	if(document.Form1.txtBeginDate.value=="")
   { alert("起始日期不能为空！");
     return (false);
   }

   if(document.Form1.txtEndDate.value.value=="")
   { alert("截止日期不能为空！");
     return (false);
   }
   
   if(!checkIsDate(document.Form1.txtBeginDate.value))
   {
	 alert("起始日期不正确！");
	 document.Form1.txtBeginDate.focus();
	 return (false);
   }
   
   if(!checkIsDate(document.Form1.txtEndDate.value))
   {
	 alert("截止日期不正确！");
	 document.Form1.txtEndDate.focus();
	 return (false);
   }
   
   if(!checkDateEarlier(document.Form1.txtBeginDate.value, document.Form1.txtEndDate.value))
   {
	 alert("截止日期必须晚于起始日期！");
	 return (false);
   }
   return (true);
}
			</script>
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<table class="small" cellSpacing="0" cellPadding="3" width="100%" border="0">
				<tr>
					<td class="Big"><IMG height="18" src="/images/menu/attendance.gif" width="18" align="absMiddle"><span class="big3"> 上下班记录查询 <asp:literal id="litNavTitle" runat="server"></asp:literal></span><br>
					</td>
				</tr>
			</table>
			<asp:Panel id="pnlQuery" runat="server">
				<div class="big1" align="center">
					<b>起始日期：</b> <INPUT class="BigInput" id="txtBeginDate" type="text" maxLength="10" size="10" name="txtBeginDate"
						runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtBeginDate,'yyyy-mm-dd','');"
						src="/module/date_selector/calendar.gif" align="absMiddle" border="0"> &nbsp;
					<b>截止日期：</b><INPUT class="BigInput" id="txtEndDate" type="text" maxLength="10" size="10" name="txtEndDate"
						runat="server"><IMG style="CURSOR: hand" onclick="popUpCalendar(this,txtEndDate,'yyyy-mm-dd','');" src="/module/date_selector/calendar.gif"
						align="absMiddle" border="0"> <input class="BigButton" title="上下班记录查询" onclick="return CheckForm();" type="submit" value="查询">
				</div>
				<br>
			</asp:Panel>
			<asp:Panel id="pnlMain" runat="server" Visible="False">
				<br>
				<asp:Literal id="litDuty" runat="server"></asp:Literal>
				<br>
				<center><input type="button" class="BigButton" value="返回" onclick="location='report.aspx';"></center>
				<br>
			</asp:Panel>
		</form>
		</B>
	</body>
</HTML>
